package com.sright.bcard.common.biz.service;

import com.sright.bcard.common.biz.manager.AuthUploadManager;
import com.sright.bcard.common.service.share.okhttp.domain.AuthFullParam;
import com.sright.bcard.common.service.share.okhttp.result.Result;
import com.sright.bcard.common.share.service.AuthUploadService;
import com.sright.common.response.SrightResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AuthUploadServiceImpl implements AuthUploadService {

    @Autowired
    private AuthUploadManager authUploadManager;

    @Override
    public SrightResponse<Result> auth(AuthFullParam authDomain) {
        return SrightResponse.defaultSuccess(authUploadManager.auth(authDomain));
    }
}
